﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    [MappingTable("ContractView")]
    public partial class ContractInfoView : ContractInfo
    {
    }

    /// <summary>
    /// Contract:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("Contract")]
    public partial class ContractInfo
    {
        public ContractInfo()
        { }
        #region Model
        private int _id;
        private string _projectid;
        private string _innernum;
        private string _outernum;
        private string _contractname;
        private string _contractstate;
        private string _contractsubject;
        private DateTime? _starttime;
        private DateTime? _finishedtime;
        private decimal? _contractamount;
        private decimal? _contracteffectiveamount;
        private string _payway;
        //private bool? _isoutsourcing= false;
        //private string _supervisorname;
        //private string _supervisortel;
        //private string _leadername;
        //private string _leadertel;
        private DateTime _createtime = DateTime.Now;
        private DateTime? _updatetime;
        private decimal? _railwayfunds;
        private decimal? _countryfunds;
        private decimal? _localgovernmentfunds;
        private decimal? _groupfunds;
        private decimal? _companyfunds;
        private decimal? _bankfunds;
        private decimal? _otherfunds;
        private int? _internaltype;
        private bool? _iscurrentvalid;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("InnerNum")]
        public string InnerNum
        {
            set { _innernum = value; }
            get { return _innernum; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("OuterNum")]
        public string OuterNum
        {
            set { _outernum = value; }
            get { return _outernum; }
        }
        /// <summary>
        /// 合同类型
        /// </summary>
        [DataField("ContractType")]
        public string ContractType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractName")]
        public string ContractName
        {
            set { _contractname = value; }
            get { return _contractname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractState")]
        public string ContractState
        {
            set { _contractstate = value; }
            get { return _contractstate; }
        }
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("ContractSubject")]
        //public string ContractSubject
        //{
        //    set { _contractsubject = value; }
        //    get { return _contractsubject; }
        //}
        /// <summary>
        /// 
        /// </summary>
        [DataField("StartTime")]
        public DateTime? StartTime
        {
            set { _starttime = value; }
            get { return _starttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("FinishedTime")]
        public DateTime? FinishedTime
        {
            set { _finishedtime = value; }
            get { return _finishedtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractAmount")]
        public decimal? ContractAmount
        {
            set { _contractamount = value; }
            get { return _contractamount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ContractEffectiveAmount")]
        public decimal? ContractEffectiveAmount
        {
            set { _contracteffectiveamount = value; }
            get { return _contracteffectiveamount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PayWay")]
        public string PayWay
        {
            set { _payway = value; }
            get { return _payway; }
        }
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("ISOutsourcing")]
        //public bool? ISOutsourcing
        //{
        //    set{ _isoutsourcing=value;}
        //    get{return _isoutsourcing;}
        //}
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("SupervisorName")]
        //public string SupervisorName
        //{
        //    set{ _supervisorname=value;}
        //    get{return _supervisorname;}
        //}
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("SupervisorTel")]
        //public string SupervisorTel
        //{
        //    set{ _supervisortel=value;}
        //    get{return _supervisortel;}
        //}
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("LeaderName")]
        //public string LeaderName
        //{
        //    set{ _leadername=value;}
        //    get{return _leadername;}
        //}
        ///// <summary>
        ///// 
        ///// </summary>
        //[DataField("LeaderTel")]
        //public string LeaderTel
        //{
        //    set{ _leadertel=value;}
        //    get{return _leadertel;}
        //}
        /// <summary>
        /// 
        /// </summary>
        [DataField("CreateTime")]
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("UpdateTime")]
        public DateTime? UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataField("RailwayFunds")]
        public decimal? RailwayFunds
        {
            set { _railwayfunds = value; }
            get { return _railwayfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CountryFunds")]
        public decimal? CountryFunds
        {
            set { _countryfunds = value; }
            get { return _countryfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("LocaLGovernmentFunds")]
        public decimal? LocaLGovernmentFunds
        {
            set { _localgovernmentfunds = value; }
            get { return _localgovernmentfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("GroupFunds")]
        public decimal? GroupFunds
        {
            set { _groupfunds = value; }
            get { return _groupfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CompanyFunds")]
        public decimal? CompanyFunds
        {
            set { _companyfunds = value; }
            get { return _companyfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BankFunds")]
        public decimal? BankFunds
        {
            set { _bankfunds = value; }
            get { return _bankfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("OtherFunds")]
        public decimal? OtherFunds
        {
            set { _otherfunds = value; }
            get { return _otherfunds; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("InternalType")]
        public int? InternalType
        {
            set { _internaltype = value; }
            get { return _internaltype; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("IsCurrentValid")]
        public bool? IsCurrentValid
        {
            set { _iscurrentvalid = value; }
            get { return _iscurrentvalid; }
        }
        #endregion Model

    }
}

